import request from '@/config/axios'

export interface PayRefundVO {
                    payId: number
                    dueRefund: number
                    realRefund: number
                    status: number
                    id: number
}

// 查询支付退款单列表
export const getPayRefundPage = async (params) => {
  return await request.get({ url: '/vrs/pay-refund/page', params })
}

// 查询支付退款单详情
export const getPayRefund = async (id: number) => {
  return await request.get({ url: '/vrs/pay-refund/get?id=' + id })
}

// 新增支付退款单
export const createPayRefund = async (data: PayRefundVO) => {
  return await request.post({ url: '/vrs/pay-refund/create', data })
}

// 修改支付退款单
export const updatePayRefund = async (data: PayRefundVO) => {
  return await request.put({ url: '/vrs/pay-refund/update', data })
}

// 删除支付退款单
export const deletePayRefund = async (id: number) => {
  return await request.delete({ url: '/vrs/pay-refund/delete?id=' + id })
}

// 导出支付退款单 Excel
export const exportPayRefundApi = async (params) => {
  return await request.download({ url: '/vrs/pay-refund/export-excel', params })
}